package com.xisoft.base.core.filter;

import javax.servlet.*;
import java.io.IOException;

public class MyAppFilter implements Filter
{

    @Override
    public void init(FilterConfig filterConfig) throws ServletException
    {
        System.err.println("🐞👉原生的MyFilter....init...👈");
        Filter.super.init(filterConfig);
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,
            ServletException
    {
        System.err.println("🐞👉原生的MyFilter....doFilter...👈");

        chain.doFilter(request, response);
    }


    @Override
    public void destroy( )
    {
        System.err.println("❌💥❣👉原生的MyFilter....destroy...👈");
        Filter.super.destroy();
    }

}
